home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
R
/
RCMD Mover.cpt
/
sound player rcmd.txt
< prev
next >
Wrap
Text File
|
1989-12-29
|
1KB
|
53 lines
(Sound Player RCMD 1.0
(Written & Copyright '89
(By Robert A. Daniel
(This RCMD will play digitized 'snd' files identified by a resource ID.
(You supply the Resource ID of the sound, the Volume between 0-7, and
(the ratio to play the sound.
(The RCMD can be copied into your procedure using ResEdit or RCMD Mover.
(Any 'snd' can be played. Just copy the 'snd' resource(s) into the same
(procedure containing this RCMD. Then play the 'snd' by using the 'snd'
(ID number. The ratio is set with N% and D% as N%:D%. A 1:1 ratio will
(play normal for most sounds. 2:1 ratio will play twice as fast. 1:2
(will play twice as slow.
(Here are a few samples:
( I% - The 'snd' resource ID
( N% - The numerator of the ratio
( D% - The denominator of the ratio
( V% - The volume to play the sound
('snd' 26346 is a sound provided in this procedure
LET EQUAL I%,26346
LET EQUAL N%,1
LET EQUAL D%,1
LET EQUAL V%,7
RCMD 1,299
('snd' 26346 is a sound provided in this procedure
LET EQUAL I%,26346
LET EQUAL N%,1
LET EQUAL D%,2
LET EQUAL V%,7
RCMD 1,299
('snd' 3 is a system beep sound
LET EQUAL I%,3
LET EQUAL N%,1
LET EQUAL D%,5
LET EQUAL V%,7
RCMD 1,299
(Written & Copyright '89
(Bob Daniel
(GEnie mail: B.DANIEL